package hello.world;

import demo1.People;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2025-06-14
 * Time: 10:11
 */
public class test1 {
    public static void main1(String[] args) {

        Map<String,Integer> map = new HashMap();
        map.put("小明",0);
        map.put("小华",1);
        for(Map.Entry<String,Integer> entry  : map.entrySet()){
            System.out.println(entry.getKey());
            System.out.println(entry.getValue());
        }
        Set<String> set = map.keySet();
        for(String key : set){

        }
    }


}
